﻿///Line2D.as 该类为绘制一条直线
//vesion 1.0
//author 夏天的树人
package org.summerTree.graphics
{

	import flash.text.*;
	import flash.display.Sprite;
	public class Rectangular2D extends Base
	{


		public function Rectangular2D()
		{

		}
		override public  function clone():*
		{
			return new Rectangular2D  ;
		}
		/* @ para   x  开始点x坐标
		 * @ para   y  开始点y坐标
		 * @ para   R_Width  矩形宽度
		 * @ para   R_Height  矩形高度
		 * @ para   fillColor 填充颜色
		 * @ pare   alpha 透明度  
		 */
		public function CreatRectangular2D(x:Number,y:Number,R_Width:Number,R_Height:Number,fillColor:uint=0xffffff,alpha:Number=1):void
		{
			this.graphics.lineStyle(linekness,color);
			this.graphics.beginFill(fillColor,alpha);
			this.graphics.drawRect(x,y,R_Width,R_Height);	
			this.graphics.endFill();
		}
	}
}